<taglib name="mkrtags" />
<!--  功能操作区域  -->

<table width="100%"   cellpadding="0" cellspacing="0" >
  <tr>
    <td width="60%">
	    <span><input type="button"  onclick="add()" class="button1" title="增加数据" value="增加数据" /> </span>
	    <span><input type="button"  onclick="edit()" class="button1" title="编辑数据" value="编辑数据" /> </span>
	    <span><input type="button"  onclick="view()" class="button1" title="查看详细数据" value="查看详细" /> </span>


		    <span>
			    <input type="button"  onclick="display('searchbox')" class="button1" title="搜索数据" value="搜索数据▼" />
			    <div class="searchbox" id="searchbox" style="display:none">
			        <table cellpadding="0" cellspacing="0">
			          <tr>
			            <td class="ewTableHeader">关键词:</td>
			            <td class="ewTableAltRow"><input id="searchkey" type="text"  name="searchkey"  value="{$searchkey}" /></td>
			          </tr>
			          <tr>
			          	<td class="ewTableHeader">条件:</td>
			            <td class="ewTableAltRow"><mkrtags:radio id="searchtype" name="searchtype"  outtable="Array" value="$searchtype" outfield="AND,OR" outkey="AND,OR" /></td>
			          </tr>
			          <tr>
			            <td colspan="2"  class="ewTableAltRow">
			            <input type="submit"   class="button1" value="搜索" />
			            <input type="button" name="delete" onclick="location.href='__URL__/index/'" class="button1" value="清空" />
			            </td>
			          </tr>
			        </table>
			    </div>
		    </span>

    </td>
  </tr>
</table>
<!-- 功能操作区域结束 -->
<!-- Myhtml 系统列表组件开始 -->
<table id="Labels_List" class="list">
  <tr class="row" >
    <th width="8"> <input type="checkbox" id="check" onclick="CheckAll('Labels_List')">
    </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','id','<php> echo getsorttype('id');</php>','Labels_Grid')"  title="按照公共ID排序">公共ID
      <php> echo getsorttype('id',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','pid','<php> echo getsorttype('pid');</php>','Labels_Grid')"  title="按照上级标识排序">上级标识
      <php> echo getsorttype('pid',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','title','<php> echo getsorttype('title');</php>','Labels_Grid')"  title="按照标识名称排序">标识名称
      <php> echo getsorttype('title',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','pageurl','<php> echo getsorttype('pageurl');</php>','Labels_Grid')"  title="按照URL地址排序">URL地址
      <php> echo getsorttype('pageurl',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','isip','<php> echo getsorttype('isip');</php>','Labels_Grid')"  title="按照记录IP排序">记录IP
      <php> echo getsorttype('isip',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','ismap','<php> echo getsorttype('ismap');</php>','Labels_Grid')"  title="按照记录轨迹排序">记录轨迹
      <php> echo getsorttype('ismap',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','isad','<php> echo getsorttype('isad');</php>','Labels_Grid')"  title="按照记录广告排序">记录广告
      <php> echo getsorttype('isad',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','isbiz','<php> echo getsorttype('isbiz');</php>','Labels_Grid')"  title="按照记录业务排序">记录业务
      <php> echo getsorttype('isbiz',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','create_on','<php> echo getsorttype('create_on');</php>','Labels_Grid')"  title="按照[系统]加入时间排序">[系统]加入时间
      <php> echo getsorttype('create_on',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Labels','ajaxlist','update_on','<php> echo getsorttype('update_on');</php>','Labels_Grid')"  title="按照[系统]更新时间排序">[系统]更新时间
      <php> echo getsorttype('update_on',1);</php>
      </a> </th>

    <th >操作区域</th>
  </tr>
  <php> if(isset($list)): </php>
  <php> $i = 0; </php>
  <php> if( count($list)==0 ) echo "" </php>
  <php> foreach($list as $key=>$list): </php>
  <php> ++$i;</php>
  <php> $mod = (($i % 2 )==0)</php>
  <php> if(($key%2)==0){ $tablesclass="ewTableAltRow";} else { $tablesclass="ewTableRow";} </php>
  <tr class="{$tablesclass}" onmouseover="ew_mouseover(this);" onmouseout="ew_mouseout(this);" onclick="ew_click(this);"  >
    <td><input type="checkbox" name="key"	value="{$list.id}"></td>

    <td title="公共ID"> <mkrtags:text id="id" name="id"  value="$list.id"/> </td>

    <td title="上级标识"> <mkrtags:text id="pid" name="pid"  value="$list.pid"/> </td>

    <td title="标识名称"> <mkrtags:text id="title" name="title"  value="$list.title"/> </td>

    <td title="URL地址"> <mkrtags:text id="pageurl" name="pageurl"  value="$list.pageurl"/> </td>

    <td title="记录IP"> <mkrtags:text id="isip" name="isip"  value="$list.isip"/> </td>

    <td title="记录轨迹"> <mkrtags:text id="ismap" name="ismap"  value="$list.ismap"/> </td>

    <td title="记录广告"> <mkrtags:text id="isad" name="isad"  value="$list.isad"/> </td>

    <td title="记录业务"> <mkrtags:text id="isbiz" name="isbiz"  value="$list.isbiz"/> </td>

    <td title="[系统]加入时间"> <mkrtags:time id="create_on" name="create_on"  value="$list.create_on"/> </td>

    <td title="[系统]更新时间"> <mkrtags:time id="update_on" name="update_on"  value="$list.update_on"/> </td>

    <td>
    	<a href="javascript:edit('{$list.id}')" title="编辑本信息">编辑</a>

     	<a href="javascript:view('{$list.id}')" title="查看详细信息">详细</a>
    </td>
  </tr>
  <php> endforeach; </php>
  <php> endif; </php>
</table>
<!--Myhtml系统列表组件结束 -->
<!--  分页显示区域 -->
<div class="page">
  <table width="100%">
    <tr>
      <td align="left"></td>
      <td align="right">{$page}</td>
    </tr>
  </table>
</div>
<!--  分页显示区域结束 -->
